﻿@{
    ViewBag.Title = "修改联系人";
}

@model FMS.UI.Areas.Factory.ViewModel.Factory_Machines_Supplier_Contact
@section headsecion{
    <style type="text/css">
        body {
            margin: 0;
            align-self: center;
        }
        .tbList {
            border: 1px solid #ddd;
            height: 99.5%;
            border-collapse: collapse;
            margin: 0;
            padding: 0;
            width: 100%;
            border-top-width: 0;
            border-bottom-width: 0;
            border-left-width: 0;
            border-right-width: 0;
        }

        .tbList td, th {
            border: 1px solid #ddd;
            padding: 0 5px;
            width: 60px;
            height: 35px;
        }

        #tdName {
            text-align: center;
        }

        #form0 {
            margin: 0;
            padding: 0;
        }
    </style>
    <script type="text/javascript">
        $(function() {
            //// 去掉所有input的autocomplete, 显示指定的除外
            $('input:not([autocomplete]),textarea:not([autocomplete]),select:not([autocomplete])').attr('autocomplete', 'off');
        });

        function Begin() {

        };

        function Complete(xhrobj) {
            $.msgProcess(xhrobj.responseText, function() {
                $.globalHelper.closeCommonWindow();
                $.globalHelper.reloadSeletecTabDataGrid();
            });
        };
    </script>
}
@using (Ajax.BeginForm(new AjaxOptions()
{
    OnBegin = "Begin",
    OnComplete = "Complete"

}))
{
    <table id="tbList" class="tbList">
        <tr>
            <td id="tdName">@Html.DisplayNameFor(o => o.Supplier_Id)</td>
            <td>
                @Html.TextBoxFor(o => o.Supplier_Id_Name, new
                {
                    id = "gongying",
                    disabled = false
                
                })
            </td>
        </tr>
        <tr>
            <td id="tdName">@Html.DisplayNameFor(o => o.contact_Name) </td>
            <td> @Html.TextBoxFor(o => o.contact_Name)@Html.ValidationMessageFor(o => o.contact_Name)</td>
        </tr>
        <tr>
            <td id="tdName">@Html.DisplayNameFor(o => o.contact_Phone)</td>
            <td>@Html.TextBoxFor(o => o.contact_Phone)@Html.ValidationMessageFor(o => o.contact_Phone)</td>
        </tr>
        <tr>
            <td id="tdName">@Html.DisplayNameFor(o => o.contact_Address)</td>
            <td>@Html.TextBoxFor(o => o.contact_Address)@Html.ValidationMessageFor(o => o.contact_Address)</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center; border: 0 solid white; margin-bottom: 0"><input type="submit" value="确定" style="height: 27px; width: 68px; cursor: pointer"/></td>
        </tr>
    </table>
}
